package com.jbit.bolon.mapper;

import com.jbit.bolon.entity.PmsGlasses;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;


import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-06-16
 */
public interface PmsGlassesMapper extends BaseMapper<PmsGlasses> {

    /**
     * 查询眼镜
     * @param styleId
     * @param frameId
     * @param materialId
     * @param colorId
     * @param lensId
     * @return
     */
    List<PmsGlasses> findGoods(Integer styleId, Integer frameId, Integer materialId, Integer colorId, Integer lensId);

    /**
     * 根据Glasses的id查询
     * @param id
     * @return
     */
    PmsGlasses findGlasssesById(Integer id);
}
